//package com.construction_Safety.information.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.construction_Safety.common.annotation.Log;
//import com.construction_Safety.common.core.controller.BaseController;
//import com.construction_Safety.common.core.domain.AjaxResult;
//import com.construction_Safety.common.enums.BusinessType;
//import com.construction_Safety.information.domain.CMaintainAlbum;
//import com.construction_Safety.information.service.ICMaintainAlbumService;
//import com.construction_Safety.common.utils.poi.ExcelUtil;
//import com.construction_Safety.common.core.page.TableDataInfo;
//
///**
// * 巡检相册管理Controller
// *
// * @author yat
// * @date 2025-06-15
// */
//@RestController
//@RequestMapping("/CMaintainAlbum/CMaintainAlbum")
//public class CMaintainAlbumController extends BaseController
//{
//    @Autowired
//    private ICMaintainAlbumService cMaintainAlbumService;
//
//    /**
//     * 查询巡检相册管理列表
//     */
//    @PreAuthorize("@ss.hasPermi('CMaintainAlbum:CMaintainAlbum:list')")
//    @GetMapping("/list")
//    public TableDataInfo list(CMaintainAlbum cMaintainAlbum)
//    {
//        startPage();
//        List<CMaintainAlbum> list = cMaintainAlbumService.selectCMaintainAlbumList(cMaintainAlbum);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出巡检相册管理列表
//     */
//    @PreAuthorize("@ss.hasPermi('CMaintainAlbum:CMaintainAlbum:export')")
//    @Log(title = "巡检相册管理", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, CMaintainAlbum cMaintainAlbum)
//    {
//        List<CMaintainAlbum> list = cMaintainAlbumService.selectCMaintainAlbumList(cMaintainAlbum);
//        ExcelUtil<CMaintainAlbum> util = new ExcelUtil<CMaintainAlbum>(CMaintainAlbum.class);
//        util.exportExcel(response, list, "巡检相册管理数据");
//    }
//
//    /**
//     * 获取巡检相册管理详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('CMaintainAlbum:CMaintainAlbum:query')")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Integer id)
//    {
//        return success(cMaintainAlbumService.selectCMaintainAlbumById(id));
//    }
//
//    /**
//     * 新增巡检相册管理
//     */
//    @PreAuthorize("@ss.hasPermi('CMaintainAlbum:CMaintainAlbum:add')")
//    @Log(title = "巡检相册管理", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody CMaintainAlbum cMaintainAlbum)
//    {
//        return toAjax(cMaintainAlbumService.insertCMaintainAlbum(cMaintainAlbum));
//    }
//
//    /**
//     * 修改巡检相册管理
//     */
//    @PreAuthorize("@ss.hasPermi('CMaintainAlbum:CMaintainAlbum:edit')")
//    @Log(title = "巡检相册管理", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody CMaintainAlbum cMaintainAlbum)
//    {
//        return toAjax(cMaintainAlbumService.updateCMaintainAlbum(cMaintainAlbum));
//    }
//
//    /**
//     * 删除巡检相册管理
//     */
//    @PreAuthorize("@ss.hasPermi('CMaintainAlbum:CMaintainAlbum:remove')")
//    @Log(title = "巡检相册管理", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable Integer[] ids)
//    {
//        return toAjax(cMaintainAlbumService.deleteCMaintainAlbumByIds(ids));
//    }
//}
